<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue</title>
	</head>
	<body>
		<div id="demo1">
			<p>Hello</p>
			<div id="demo2">
				
			</div>
			<button type="button" onclick="test1()">打招呼</button>
			<button type="button" onclick="test2()">隐藏</button>
			
		</div>
	</body>
</html>
<script type="text/javascript">
	var d1=document.getElementById("demo1");
	var d2=document.getElementById("demo2");
	
	function test1(){
		d2.innerHTML="寒冷"
		d2.style.display="inherit";
	}
	function test2(){
		d2.style.display="none"
	}
</script>